home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI616.ASC < prev    next >
Text File  |  1992-08-12  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  616
  9.   VERSION  :  3.0 & up
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/1
  12.  
  13.     TITLE  :  Use of the Paradox Resynckey with linked tables
  14.  
  15.  
  16.  
  17.  
  18.   Use of the Paradox Resynckey with linked tables relies on the
  19.   relationship for key field updating.
  20.  
  21.   When changing the value of the master table field which is being
  22.   used as a link to a detail table, that linking field in the
  23.   detail table will be changed if the relationship between tables
  24.   is One-to-One or One-to-Many.
  25.  
  26.   In a Many-to-One or Many-to-Many relationship, the key field of
  27.   the detail table would not be changed, and the new matching
  28.   detail records would appear as you would expect to happen.
  29.  
  30.     The following chart shows the relationships ...
  31.  
  32.     ╔════════════════╤══════════════╤═════════════════════╗
  33.     ║ Relationship   │ Owns Details │ Changes Detail Keys ║
  34.     ╟────────────────┼──────────────┼─────────────────────╢
  35.     ║ One-to-One     │      YES     │          YES        ║
  36.     ║ One-to-Many    │      YES     │          YES        ║
  37.     ║ Many-to-One    │      NO      │          NO         ║
  38.     ║ Many-to-Many   │      NO      │          NO         ║
  39.     ╚════════════════╧══════════════╧═════════════════════╝
  40.  
  41.  
  42.   Many users will often make the mistake of thinking RESYNCKEY will
  43.   resynchronize the detail with the new master values all the time,
  44.   or report that on one table it works, but on another it doesn't.
  45.  
  46.   The proper relationship for using RESYNCKEY should be a Many-to-
  47.   One or Many-to-Many.  In addition, in a One-to-One and One-to-
  48.   Many relationship, Paradox always automatically changes the
  49.   detail key fields when you change the linking master table
  50.   fields.
  51.  
  52.   DISCLAIMER: You have the right to use this technical information
  53.   subject to the terms of the No-Nonsense License Statement that
  54.   you received with the Borland product to which this information
  55.   pertains.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.